package com.mobjam.workingtitleforagame;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.view.View;

public class MapPortal extends MapObject 
{
	private Context context;
	
	public MapPortal( MapObjectType mapObjectType, Context context)
	{
		super(mapObjectType);
		this.bitmap = storePortalBitmap;
		this.context = context;
	}

	public void launchActivity() 
	{
		Intent myIntent = new Intent(context, StoreActivity.class);
		Activity activity = (Activity)context;
		activity.startActivityForResult(myIntent, 0);
	}

	@Override
	public Bitmap getBitmapFrame(int frame) {
		return bitmap;
	}
}
